/*--------------------------------------------------------------------------------*/
#ifndef __MATH_RECTANGLE__
#define __MATH_RECTANGLE__
/*--------------------------------------------------------------------------------*/
#include "primitives.h"
#include "object.h"
#include "ref_to_.h"
#include "math_vector_2.h"
/*--------------------------------------------------------------------------------*/
class MATH_RECTANGLE
{

    // -- PUBLIC

public:

    // .. CONSTRUCTORS

    MATH_RECTANGLE()
    {
    }

    MATH_RECTANGLE( const MATH_VECTOR_2 & top_left_point, const MATH_VECTOR_2 & bottom_right_point )
        : TopLeftPoint(top_left_point),
          BottomRightPoint(bottom_right_point)
    {
    }

    // .. METHODS

    VOID Set( const MATH_VECTOR_2 & top_left_point, const MATH_VECTOR_2 & bottom_right_point )
    {
        TopLeftPoint = top_left_point;
        BottomRightPoint = bottom_right_point;
    }

    // .. OPERATORS

    MATH_RECTANGLE & operator=( const MATH_RECTANGLE & other )
    {
        TopLeftPoint = other.TopLeftPoint;
        BottomRightPoint = other.BottomRightPoint;
        return *this;
    }

    // .. ATTRIBUTES

    MATH_VECTOR_2
		TopLeftPoint,
		BottomRightPoint;

};
/*--------------------------------------------------------------------------------*/
#endif


